package pta;/**
 * @author： li
 * @date： 2022-04-01 21:27
 * @version 1.0
 */
import java.io.*;
public class 情人节 {
    static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        String a = in.readLine();
        int count=0;
        if(!a.equals("."))
            count=1;
        String fir ="",sec = "";
        while (!a.equals(".")){
            a = in.readLine();
            if(!a.equals("."))
                count++;
            else
                break;
            if(count==2)
                fir=a;
            if(count==14){
                sec=a;
                break;
            }
        }
        if(count>=14)
            System.out.println(fir+" "+"and"+" "+sec+" "+"are inviting you to dinner...");
        else if(count>=2)
            System.out.println(fir+" "+"is the only one for you...");
        else
            System.out.println("Momo... No one is for you ...");
        
    }
}
